package com.ztom.test

import com.ztom.context.support.ClassPathXmlApplicationContext
import com.ztom.test.event.CustomEvent
import kotlin.test.Test

/**
 * @author ZhangTao
 */
class Test12EventListener {

    @Test
    fun test() {
        val applicationContext = ClassPathXmlApplicationContext("classpath:spring-12-event-listener.xml")

        applicationContext.publishEvent(CustomEvent("自定义事件源"))

        applicationContext.close()
    }
}